<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .fluid {
      font-size: 10px;
    }
    @media screen and (min-width: 600px) {
      .fluid {
        font-size: 2.5vw;
      }
    }
    @media screen and (min-width: 5000px) {
      .fluid {
        font-size: 110px;
      }
    }
    .clamp {
      width: 100%;
      --minimum-size: 10px;
      --maximum-size: 110px;
      font-size: clamp(var(--minimum-size), 2.5vw, var(--maximum-size));
    }
  </style>
  <body>
    <div class="clamp">放大/缩小视口查看这段文字的效果</div>
    <div class="fluid">放大/缩小视口查看这段文字的效果</div>
  </body>
</html>
